package capricornus.components.utils.color
{
	public class Color
	{
		public var a:int;
		public var r:int;
		public var g:int;
		public var b:int;
		
		public function Color()
		{
		}
		
		public static function getRGB( color:uint ):Color
		{
			var c:Color = new Color();
			
			c.a = ((color >> 8) & 0x00ff0000) >> 16;
			c.r = (color & 0x00ff0000) >> 16;
			c.g = (color & 0x0000ff00) >> 8;
			c.b = (color & 0x000000ff);
			
			return c; 
		}
	}
}